import random
flag = True
queue = [1,2,3,4,5,6,7]
while flag:
    if len(queue) == 1:
        print('抢凳子游戏%d获胜！'%(queue[0]))
        break
    hit = random.randint(1,3)
    while hit >= 1:
        pop1 = queue.pop()
        if hit == 1:
            print('本次击鼓%d被淘汰！'%(pop1))
            break
        queue.insert(0, pop1)
        hit -= 1